#!/bin/bash
#

while read line; do
    num=$(echo $line | awk '{print $4}')
    total=$((total+num))
done < /opt/test.2
echo "办公人数总和：$total"
